/**
 * 
 */
package com.scpii.universal.pns.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.scpii.universal.hibernate.dao.impl.BaseDaoImpl;
import com.scpii.universal.pns.dao.PnsMessageDao;
import com.scpii.universal.pns.entity.PnsMessage;

/**
 * genericWeb
 * 
 * @author acer 2012-7-5下午04:35:11
 */
@Repository
public class PnsMessageDaoImpl extends BaseDaoImpl<PnsMessage, Integer>
		implements PnsMessageDao {

	@Override
	public List<PnsMessage> getTotalCount(Integer enterId, Integer appId) {
		String hql = " from PnsMessage u "
				+ "where u.appId=? and u.buildPlatform=1 ";
		return getHibernateTemplate().getSessionFactory().getCurrentSession()
				.createQuery(hql).setParameter(0, appId.toString()).list();
	}

}
